package com.jokey.vue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2021/11/25 20:36
 * @version: v1.0.0
 * <p>菜单角色表</p>
 */
@Data
@NoArgsConstructor
@TableName(value = "menu_role", autoResultMap = true)
public class MenuRole implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单ID
     */
    private Integer mId;

    /**
     * 角色ID
     */
    private Integer rId;

    public MenuRole(Integer mId, Integer rId) {
        this.mId = mId;
        this.rId = rId;
    }
}
